const fs = require('fs')

let file = 'D:\\code\\web_learn\\webpack\\demo\\package.json'
fs.stat(file,(err, result)=>{
    console.log(result)
}